﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyBlog.DataEntity;

namespace MyBlog.DataAccess
{
    internal class AlbumMap : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Tbl_Album>
    {
       public AlbumMap()
       {
           this.HasMany(e => e.Tbl_AlbumDetail)
               .WithRequired(e => e.Tbl_Album)
               .HasForeignKey(e => e.GroupID)
               .WillCascadeOnDelete(false);
       }
    }
}
